/*
 * @Descripttion: 
 * @version: 
 * @Author: ada.wu
 * @Date: 2023-10-20 15:34:54
 * @LastEditors: ada.wu
 * @LastEditTime: 2023-11-08 14:40:05
 */
import { computed, reactive, ref, Ref, toRefs } from "vue";

export const RELATIONSHIP = {
    '0': '本人',
    '1': '配偶',
    '3': '子女',
    '4': '父母',
    '9': '其他',
} as any

// 01-身份证,02-外国人永久居留身份证,03-护照,04-军官证,07-港澳台居民居住证
export const idType = {
    '01': "身份证", // 身份证
    '03': "护照", // 护照
    '04': "军官证", // 军官证
    '06': "户口簿", // 户口簿
    '07': "港澳台居民居住证", // 港澳台居民居住证
    '02': "外国人永久居留身份证", // 外国人永久居留身份证
    '99': "其他",
}as any
//保单录入关系人信息
export const PERSON_ID_TYPE = {
    '01': "身份证",
    '03': "护照",
    '04': "军官证",
    '06': "户口簿",
    '07': "港澳台居民居住证",
    '02': "外国人永久居留身份证",
    '51': '三证合一',
    '54': '组织机构代码登记号',
    '99': '其他',
} as any





const relationshipList = [
    { key: '0', value: '0', text: "本人" },
    { key: '1', value: '1', text: "配偶" },
    { key: '3', value: '3', text: "子女" },
    { key: '4', value: '4', text: "父母" },
    { key: '9', value: '9', text: "其他" },
]

const idTypeList = [
    { key: '01', value: '01', text: "身份证" },
    { key: '03', value: '03', text: "护照" },
    { key: '04', value: '04', text: "军官证" },
    { key: '06', value: '06', text: "户口簿" },
    { key: '07', value: '07', text: "港澳台居民居住证" },
    { key: '02', value: '02', text: "外国人永久居留身份证" },
    { key: '99', value: '99', text: "其他" },
]

const personIdTypeList = [
    { key: '01', value: '01', text: "身份证" },
    { key: '03', value: '03', text: "护照" },
    { key: '04', value: '04', text: "军官证" },
    { key: '06', value: '06', text: "户口簿" },
    { key: '07', value: '07', text: "港澳台居民居住证" },
    { key: '02', value: '02', text: "外国人永久居留身份证" },
    { key: '51', value: '51', text: "三证合一" },
    { key: '54', value: '54', text: "组织机构代码登记号" },
    { key: '99', value: '99', text: "其他" },
]

const beneficiaryType = {
    '0': '法定',
    '1': '指定',
}
//产品类型:MOTOR-车险,NOMOTOR-非车险,LIFE-寿险
const productType = {
    'LIFE': '寿险',
    'MOTOR': '车险',
    'NOMOTOR': '非车险',
}
const productTypeList = [
    { key: 'LIFE', value: 'LIFE', text: "寿险" },
    { key: 'MOTOR', value: 'MOTOR', text: "车险" },
    { key: 'NOMOTOR', value: 'NOMOTOR', text: "非车险" },
]
const productTypeUploadList = [
    { key: 'LIFE', value: 'LIFE', text: "寿险" },
    { key: 'MOTOR', value: 'MOTOR', text: "车险" },
    //暂时不要
    // { key: 'NOMOTOR', value: 'NOMOTOR', name: "非车险" },
]


export default function () {

    const state = reactive({
    })
    
    return {
        ...toRefs(state),
        relationship: RELATIONSHIP,
        relationshipList: relationshipList,
        personIdType: PERSON_ID_TYPE,
        idTypeList: idTypeList,
    }
}
